package tt.dz.service.imp.sys;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;
import tt.dz.util.OrderConstant;

import java.util.Map;

@Component
public class OnlineCompanyCardBillProcess extends AbstractCardBillProcess
{
	private Log log = LogFactory.getLog(OnlineCompanyCardBillProcess.class);
	@Override
	protected void setCardType(Map<String, String> map)
	{

		map.put("cardType", OrderConstant.CardType.ONLINE_CARD.value());
	}

	@Override
	protected boolean hasOnlineWhiteList()
	{
		return false;
	}

	@Override
	protected boolean useChargersBill(boolean allowChargerGenerateBill)
	{
		log.info(allowChargerGenerateBill);
		log.debug("company card");
		return allowChargerGenerateBill;
	}

	@Override
	protected OrderConstant.BizSystemCode getBillSource()
	{
		return OrderConstant.BizSystemCode.LeTV;//Fixme luoyp
	}
}
